package com.situ.day11.thread.producer;

public class Main {
	public static void main(String[] args) {
		//生产者和消费者操作的是同一个盘子
		Panzi panzi = new Panzi();
		//启动生产者线程去生产蛋糕
		ProducerThread producerThread = new ProducerThread("生产者线程", panzi);
		producerThread.start();
		//启动消费者线程去吃蛋糕
		ConsumerThread consumerThread = new ConsumerThread("消费者线程", panzi);
		consumerThread.start();
	}
}
